package com.zlsy.springbootdemo.strategy.example1.demo.service.impl;

import com.zlsy.springbootdemo.strategy.example1.annotations.StrategyExampleAnnotation;
import com.zlsy.springbootdemo.strategy.example1.enums.StrategyEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author zhouliang
 * @date 2021/1/19 17:20
 */
@Slf4j
@Service
@StrategyExampleAnnotation(value = StrategyEnum.MULTIPLY)
public class Example1OperationMultiplyImpl extends BaseExampleServiceImpl {

  @Override
  public int doOperation(int num1, int num2) {
      log.info("Multiply doOperation");
    return num1 * num2;
  }
}
